package com.spy.material.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spy.material.vo.OutboundOrderDetailVO;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import com.spy.material.domain.OutboundOrderDetail;

/**
 * 出库明细Mapper接口
 *
 * @author twc
 * @date 2025-11-09
 */
@Mapper
public interface OutboundOrderDetailMapper extends BaseMapper<OutboundOrderDetail>
{
    /**
     * 查询出库明细
     *
     * @param id 出库明细主键
     * @return 出库明细
     */
    public OutboundOrderDetail selectOutboundOrderDetailById(Long id);

    /**
     * 查询出库明细列表
     *
     * @param outboundOrderDetail 出库明细
     * @return 出库明细集合
     */
    public List<OutboundOrderDetail> selectOutboundOrderDetailList(OutboundOrderDetail outboundOrderDetail);

    /**
     * 新增出库明细
     *
     * @param outboundOrderDetail 出库明细
     * @return 结果
     */
    public int insertOutboundOrderDetail(OutboundOrderDetail outboundOrderDetail);

    /**
     * 修改出库明细
     *
     * @param outboundOrderDetail 出库明细
     * @return 结果
     */
    public int updateOutboundOrderDetail(OutboundOrderDetail outboundOrderDetail);

    /**
     * 删除出库明细
     *
     * @param id 出库明细主键
     * @return 结果
     */
    public int deleteOutboundOrderDetailById(Long id);

    /**
     * 批量删除出库明细
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOutboundOrderDetailByIds(Long[] ids);

    List<OutboundOrderDetailVO> detail(Long outboundOrderId);
}